Initialize editable to TRUE. (gtk_text_tag_class_init): The default value
authorMatthias Clasen <mclasen@redhat.com>
Fri, 6 Jan 2006 17:53:53 +0000 (17:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 6 Jan 2006 17:53:53 +0000 (17:53 +0000)
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable to
TRUE.
(gtk_text_tag_class_init): The default value for the direction property
is GTK_TEXT_DIR_NONE. Add notes about the initial values of the
font and language properties.

ChangeLog
ChangeLog.pre-2-10
gtk/gtktexttag.c

index ef36296f6aa7040d9fcdda529a9f6f4684ce9aed..98ad383160c37d70967f96d856fdb21c3b6d9866 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
+       to TRUE. 
+       (gtk_text_tag_class_init): The default value for the direction 
+       property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
+       of the font and language properties.
+
        * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
        an action signal.  (#325782, Martyn Russell)
 
index ef36296f6aa7040d9fcdda529a9f6f4684ce9aed..98ad383160c37d70967f96d856fdb21c3b6d9866 100644 (file)
@@ -1,5 +1,11 @@
 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
+       to TRUE. 
+       (gtk_text_tag_class_init): The default value for the direction 
+       property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
+       of the font and language properties.
+
        * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
        an action signal.  (#325782, Martyn Russell)
 
index 14265e28a9431c178ff233233dd957c31bebd36c..41d691af881e07f04d48674079888c1197006712 100644 (file)
@@ -270,7 +270,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                       P_("Text direction"),
                                                       P_("Text direction, e.g. right-to-left or left-to-right"),
                                                       GTK_TYPE_TEXT_DIRECTION,
-                                                      GTK_TEXT_DIR_LTR,
+                                                      GTK_TEXT_DIR_NONE,
                                                       GTK_PARAM_READWRITE));
 
   g_object_class_install_property (object_class,
@@ -281,6 +281,14 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                          TRUE,
                                                          GTK_PARAM_READWRITE));
 
+  /**
+   * GtkTextTag:font:
+   *
+   * Font description as string, e.g. \"Sans Italic 12\". 
+   *
+   * Note that the initial value of this property depends on
+   * the internals of #PangoFontDescription.
+   */
   g_object_class_install_property (object_class,
                                    PROP_FONT,
                                    g_param_spec_string ("font",
@@ -296,7 +304,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                        P_("Font description as a PangoFontDescription struct"),
                                                        PANGO_TYPE_FONT_DESCRIPTION,
                                                        GTK_PARAM_READWRITE));
-
   
   g_object_class_install_property (object_class,
                                    PROP_FAMILY,
@@ -382,7 +389,17 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                       GTK_TYPE_JUSTIFICATION,
                                                       GTK_JUSTIFY_LEFT,
                                                       GTK_PARAM_READWRITE));
-  
+
+  /**
+   * GtkTextTag:language:
+   *
+   * The language this text is in, as an ISO code. Pango can use this as a 
+   * hint when rendering the text. If not set, an appropriate default will be 
+   * used.
+   *
+   * Note that the initial value of this property depends on the current
+   * locale, see also gtk_get_default_language().
+   */
   g_object_class_install_property (object_class,
                                    PROP_LANGUAGE,
                                    g_param_spec_string ("language",
@@ -681,9 +698,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
 static void
 gtk_text_tag_init (GtkTextTag *text_tag)
 {
-  /* 0 is basically a fine way to initialize everything in the
-     entire struct */
-  
   text_tag->values = gtk_text_attributes_new ();
 }
 
@@ -1942,7 +1956,9 @@ gtk_text_attributes_new (void)
   values->language = gtk_get_default_language ();
 
   values->font_scale = 1.0;
-  
+
+  values->editable = TRUE;
+      
   return values;
 }